import os

from django.conf            import settings
from django.core.exceptions import ImproperlyConfigured

__all__ = (
    'CURRENT_LAYOUT_NAME','DEFAULT_THEME_NAME','CURRENT_THEME_NAME','CURRENT_THEME_PREFIX',
    'SITES_DIR',
)

CURRENT_LAYOUT_NAME  = 'current'
DEFAULT_THEME_NAME   = 'default'
CURRENT_THEME_NAME   = 'current'
CURRENT_THEME_PREFIX = 'themes/{0}/'.format(CURRENT_THEME_NAME)
SITES_DIR            = settings.SITES_DIR

if not os.path.isdir(SITES_DIR):
    raise ImproperlyConfigured,"'{0}' must be an existing directory".format(SITES_DIR)

